package com.cl.it.mbg.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author kehui
 * @since 2021-11-23
 */
@TableName("t_access_pool")
@ApiModel(value = "AccessPool对象", description = "")
public class AccessPool implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "是否激活", position = 0)
    private Integer active;

    @ApiModelProperty(value = "名称", position = 1)
    private String name;

    @ApiModelProperty("私钥路径")
    private String sshKeyPath;

    @ApiModelProperty("可信IP")
    private String sshKnownHosts;

    @ApiModelProperty("目标服务器IP")
    private String host;

    @ApiModelProperty("目标服务器端口")
    private Integer port;

    @ApiModelProperty("目标服务用户名")
    private String username;

    @ApiModelProperty("目标服务密码")
    private String password;

    @ApiModelProperty("代理转发机器IP")
    private String fromHost;

    @ApiModelProperty("代理转发机器端口")
    private Integer fromPort;

    @ApiModelProperty("基于代理机器的目标机器IP")
    private String toHost;

    @ApiModelProperty("基于代理机器的目标机器端口")
    private Integer toPort;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getActive() {
        return active;
    }

    public void setActive(Integer active) {
        this.active = active;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSshKeyPath() {
        return sshKeyPath;
    }

    public void setSshKeyPath(String sshKeyPath) {
        this.sshKeyPath = sshKeyPath;
    }

    public String getSshKnownHosts() {
        return sshKnownHosts;
    }

    public void setSshKnownHosts(String sshKnownHosts) {
        this.sshKnownHosts = sshKnownHosts;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getFromHost() {
        return fromHost;
    }

    public void setFromHost(String fromHost) {
        this.fromHost = fromHost;
    }

    public Integer getFromPort() {
        return fromPort;
    }

    public void setFromPort(Integer fromPort) {
        this.fromPort = fromPort;
    }

    public String getToHost() {
        return toHost;
    }

    public void setToHost(String toHost) {
        this.toHost = toHost;
    }

    public Integer getToPort() {
        return toPort;
    }

    public void setToPort(Integer toPort) {
        this.toPort = toPort;
    }

    @Override
    public String toString() {
        return "AccessPool{" +
        "id=" + id +
        ", active=" + active +
        ", name=" + name +
        ", sshKeyPath=" + sshKeyPath +
        ", sshKnownHosts=" + sshKnownHosts +
        ", host=" + host +
        ", port=" + port +
        ", username=" + username +
        ", password=" + password +
        ", fromHost=" + fromHost +
        ", fromPort=" + fromPort +
        ", toHost=" + toHost +
        ", toPort=" + toPort +
        "}";
    }
}
